namespace Launcher.Ui

import System
import System.Drawing
import System.Windows.Forms

class CircularFormShape:
"""Description of CircularFormShape"""

	_parent as Form
	
	[property(Radius)]
	_radius as int
	
	def constructor(parent as Form):
		_parent = parent
		_parent.BackColor = Constants.TransparentColor
		
	def Draw(e as PaintEventArgs, formSize as Size):
		midx = formSize.Width / 2
		midy = formSize.Height / 2
		d = _radius
		
		e.Graphics.FillEllipse(System.Drawing.SolidBrush(Constants.ControlColor),
						midx - d, midy - d, d*2, d*2)
						
		e.Graphics.FillEllipse(System.Drawing.SolidBrush(Constants.ControlColor),
						midx - 75, midy - d - 20, 150, 60)

